﻿// <com.woyouqiu.Copyright>
// --------------------------------------------------------------
// <copyright>上海有求网络科技有限公司 2015</copyright>
// <Solution>Vecen.BangChuang</Solution>
// <Project>Vecen.BangChuang.Core</Project>
// <FileName>AgentUser.cs</FileName>
// <CreateTime>2017-05-03 22:38</CreateTime>
// <Author>何苗</Author>
// <Email>hemiao@woyouqiu.com</Email>
// <log date="2017-05-03 22:38" version="00001">创建</log>
// --------------------------------------------------------------
// </com.woyouqiu.Copyright>

using System.ComponentModel.DataAnnotations.Schema;
using Abp.Domain.Entities.Auditing;
using Vecen.BangChuang.Authorization.Users;

namespace Vecen.BangChuang.BangChuang.Agents {
    public class AgentClient:CreationAuditedEntity {

        /// <summary>
        /// 代理商ID
        /// </summary>
        public int AgentId { get; set; }

        [ForeignKey(nameof(AgentId))]
        public Agent Agent { get; set; }

        /// <summary>
        /// 客户ID
        /// </summary>
        public long UserId { get; set; }

        [ForeignKey(nameof(UserId))]
        public User User { get; set; }
    }
}